package com.ge.modules.api.service.impl;

import com.ge.modules.api.service.TbRechargeOrderService;
import com.ge.modules.dao.TbRechargeOrderDao;
import com.ge.modules.entity.TbRechargeOrderEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class RechargeOrderServiceImpl implements TbRechargeOrderService {
	@Autowired
	private TbRechargeOrderDao rechargeOrderDao;
	
	@Override
	public TbRechargeOrderEntity queryObject(Integer id){
		return rechargeOrderDao.queryObject(id);
	}

	@Override
	public TbRechargeOrderEntity queryByObject(TbRechargeOrderEntity tbRechargeOrderEntity) {
		return rechargeOrderDao.queryByObject(tbRechargeOrderEntity);
	}

	@Override
	public List<TbRechargeOrderEntity> queryList(Map<String, Object> map){
		return rechargeOrderDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return rechargeOrderDao.queryTotal(map);
	}
	
	@Override
	public void save(TbRechargeOrderEntity rechargeOrder){
		rechargeOrderDao.save(rechargeOrder);
	}
	
	@Override
	public void update(TbRechargeOrderEntity rechargeOrder){
		rechargeOrderDao.update(rechargeOrder);
	}
	
	@Override
	public void delete(Integer id){
		rechargeOrderDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		rechargeOrderDao.deleteBatch(ids);
	}
	
}
